﻿using System.Linq;
using PresentatieSite.Core.Enum;
using PresentatieSite.Core.Models;
using PresentatieSite.Core.Repositories;

namespace PresentatieSite.Core.Services
{
    class ShopService
    {
        private readonly ProductRepository _repo = new ProductRepository();

        public bool ProductExists(string userName)
        {
            return _repo.ProductRepo.Any(x => x.Name.Equals(userName));
        }
    }
}
